from random import choice

lowercase = "abcdefghijklmnopqrstuvwxyz"

letters_lst = ["".join([choice(lowercase) for _ in range(2)]) for _ in range(100)]

uniq_letters_set = set(letters_lst)

res = {}

for i in uniq_letters_set:
    res[i] = letters_lst.count(i)

print(sorted(res.items(), key=lambda x:x[1], reverse=True))


# 完成的不错
